package com.example.springwork.beans;

import org.springframework.stereotype.Component;

/**
 * @author 25688
 **/
@Component
public class User {
    private int id;
    private String name;

    public void initMethod(){
        System.out.println(name+"我在讲SpringIOC");
    }
    public void destroyMethod(){
        System.out.println(name+"我在学SPRINGIOC");
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
